package com.zysstudy.designmode;

/**
 * @author zhaoyoushui
 * @date 2024/4/26 11:31
 * @Description
 * @Copyright 南京优通信息科技股份有限公司
 */
public class Cat extends Animal {

    private String name;

    public Cat(String tname) {
        this.name = tname;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void play(){
        System.out.println("小猫"+this.name+"在做游戏");
    }
}